//
//  LEUtil.h
//
//  Created by jun on 2019/6/19.
//  Copyright © 2019 lechen. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^resultSelectIndex)(NSInteger index);
typedef void(^resultDate)(NSString *date);

@interface LEUtil : NSObject
+(NSDate *)getLaterDateFromDate:(NSDate *)date withMonth:(NSInteger)month;
+ (NSString *)userInfoPath;
+ (NSString *)modelInfoPath;
+(NSString *)MD5:(NSString *)mdStr;
+ (BOOL)isChinaMobile:(NSString *)phoneNum;
+(BOOL)judgePassWordLegal:(NSString *)pass;
+(NSString*)longdate2Time:(long)ms;
+(NSString*)longdate2Month:(long)ms;
+(NSString*)longdate2Detail:(long)ms;
+ (NSString *)timeFormateWithTime:(NSInteger)time formate:(NSString *)formate is:(BOOL)is;
+(BOOL)isEmpty:(NSString*)text;
+(NSString *)getRandomStringWithNum:(NSInteger)num;
+ (BOOL)isUserNotificationEnable;
+(NSString *)fileSizeWithInterge:(NSInteger)size;
+ (CGFloat)getTheStringHeight:(NSString *)string setFont:(CGFloat)font withWidth:(CGFloat)width;
+ (void)openScheme:(NSString *)scheme;
+(NSString*)UUID;
+(void)feedBackHeavy;
+(void)showSingleChoice:(NSArray*)datas defalutIndex:(NSInteger)defalutIndex resultIndex:(resultSelectIndex)resultIndex;
+(void)showDateChoice:(NSString*)defaultDate title:(NSString*)title resultDate:(resultDate)resultDate;
@end

